package cn.dnui_xcz826.dnuifood_16110100826.service;

import java.util.List;

import cn.dnui_xcz826.dnuifood_16110100826.bean.CommentBean;
import cn.dnui_xcz826.dnuifood_16110100826.bean.ResultBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2018/11/19.
 */

public interface CommentService {
    @GET("getAllCommentsByFood.do")
    Call<List<CommentBean>> doGetAllCommentsByFood(
            @Query("food_id") String food_id
    );

    @GET("getAllCommentsByUser.do")
    Call<List<CommentBean>> doGetAllCommentsByUser(
            @Query("user_id") String user_id
    );

    @GET("insertComment.do")
    Call<ResultBean> doInserComment(
            @Query("item_id") String item_id,
            @Query("content") String content
    );

    @GET("updateComment.do")
    Call<ResultBean> doUpdateComment(
            @Query("item_id") String item_id,
            @Query("content") String content
    );

    @GET("deleteComment.do")
    Call<ResultBean> doDeleteComment(
            @Query("item_id") String item_id
    );

}
